/**
 * 上传页面样式
 */

/* 上传区域样式 */
.upload-area:hover {
    border-color: #4a90e2;
    background: #f8f9fa;
}

.upload-area i {
    font-size: 48px;
    color: #4a90e2;
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    margin: 0;
}

/* 预览图片容器 */
.preview-container {
    display: none;
    margin-top: 20px;
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
}

.preview-container.show {
    display: block;
}

/* 标签输入区域 */
.tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 44px;
}

.tag {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag span {
    font-size: 14px;
}

.tag i {
    cursor: pointer;
    color: #666;
}

.tag i:hover {
    color: #dc3545;
}

/* 按钮样式 */
.submit-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #357abd;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 进度条 */
.progress-bar {
    display: none;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 10px;
}

.progress-bar .progress {
    height: 100%;
    background: #4a90e2;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.progress-bar.show {
    display: block;
}

/* 错误提示 */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .upload-container {
        padding: 15px;
        margin: 10px;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .upload-area i {
        font-size: 36px;
    }
    
    .form-group {
        gap: 5px;
    }
} 